module.exports = function socketdemo() {
    const cluster = require('cluster');

    if (cluster.isMaster) {
        var demo = require("./socketserver");
        console.log(process.pid)
        demo();
        cluster.fork();
    } else {
        var demo = require("./socketclient");
        console.log(process.pid)
        console.log(process.ppid)
        demo();
    }

}